<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>::JSP 프로젝트 v1::</title>
<link href="css/normalize.css" rel="stylesheet">
<link href="css/dasom.css" rel="stylesheet">
<style type="text/css">
	/*회원가입 폼 정렬*/
	#joinfrm{/*border:1px solid red; */width:365px;}
	#joinfrm label{width:120px; text-align:right; font-weight:bold;
					display:inline-block; padding:0 10px 0 0;}
	#joinfrm div{margin:10px 10px;}
</style>
</head>
<body>
	<header>
		<h1>JSP프로젝트 v1</h1>
		<ul id="nav">
			<li><a href="indexT.html">HOME</a></li>
			<li><a href="joinT.html">회원가입</a></li>
			<li><a href="loginT.html">로그인</a></li>
			<li><a href="listT.html">게시판</a></li>
			<li><a href="myinfoT.html">회원정보</a></li>
		</ul>
		<!--<hr/>--><!--사용안함-->
		<div class="hr"></div><!--구분선-->
	</header>
	<div id="contents">
	<h2>::회원가입::</h2>
		<form name="joinfrm" id="joinfrm" class="centerme">
			<div><label for="userid">아이디</label>
			<input type="text" name="userid" id="userid"></div>
			
			<div><label for="passwd">비밀번호</label>
			<input type="text" name="passwd" id="passwd"></div>
			
			<div><label for="repasswd">비밀번호 확인</label>
			<input type="text" name="repasswd" id="repasswd"></div>
			
			<div><label for="name">이름</label>
			<input type="text" name="name" id="name"></div>
			
			<div><label for="userid">전자우편</label>
			<input type="text" name="zip" id="zip"></div>
			
			<div><label></label><button type="button" id=joinokbtn>입력완료</button>
			<button type="reset">다시입력</button></div>
		</form>
	</div>
	<footer>
		<div class="hr"></div>
		<p class="copy">Copyrights(c)2014.dasom.All rights Reserved</p>
	</footer>
	<script type="js/jquery-1.11.1.min.js"></script>
	<script type="js/dasom.js"></script>
	<script type="text/javascript">
	
	var joinbtn=document.getElementById("joinokbtn");
	joinbtn.onclick=function(){joinme();};
	</script>
	<script type="text/javascript">
	
	function joinme(){
		var joinfrm=document.getElementById("joinfrm");
		if(joinfrm.userid.value=="")
			alert('아이디를 입력하세요!');
		else{
			joinfrm.method="post";
			joinfrm.action="joinok.jsp";
			joinfrm.submit();
					
		}
		
			
		
		}
	}
	
	</script>
</body>
</html>
